<!--<?php print <<<EOT
-->
<script language="javascript">
jQuery(function(){
	/*-----卡盘---pw_tab("id","even",delay)-*/
	pw_tab("house-detail","mouseover");
	pw_tab("house-photos","mouseover");
	pw_tab("pwSlidePlayer");
})
</script>
<div id="breadCrumb">
	<strong><a href="index.php?m=house&q=new">新房首页</a></strong>
<!--#
if ($houseinfo['area']) {
#-->
	>> <a href="{$houseBaseUrl}q=list&area={$houseinfo['area']}">{$areaField[$houseinfo['area']]}</a>
<!--#
}
#-->
	>> <a href="{$houseBaseUrl}q=info&hid={$hid}">{$houseinfo['name']}</a>
</div>
<div id="banner" class="mb" style="background:url({$houseinfo['banner']}) no-repeat 0 0;">
	<div id="house-title">
		<h1>{$houseinfo['name']}</h1>
		<span class="status">
<!--#
if ($houseinfo['status'] == 1) {
#-->
			<span class="new">新盘</span>
<!--#
} elseif ($houseinfo['status'] == 2) {
#-->
			<span class="onsale">在售</span>
<!--#
} elseif ($houseinfo['status'] == 3) {
#-->
			<span class="rest">尾盘</span>
<!--#
} else {
#-->
			<span class="sold-out">售空</span>
<!--#
}
#-->
		</span>
	</div>
	<ul id="main-nav">
		<li class="current"><a href="{$houseBaseUrl}q=info&hid=$hid">楼盘信息</a></li>
		<li><a href="{$houseBaseUrl}q=album&hid=$hid">相册</a></li>
<!--#
if ($houseinfo['cyid']) {
#-->
		<li><a href="apps.php?q=group&cyid={$houseinfo['cyid']}">业主小区</a></li>
<!--#
}foreach ($houseinfo['nav'] as $key => $value) {
#-->
		<li><a href="{$value['link']}"{$value['a_style']}>{$value['title']}</a></li>
<!--#
}
#-->
	</ul>
	<div id="sub-nav">
		<b class="l"></b>
		<ul>
			<li class="current"><a href="$basename#house-infos">基本信息</a></li>
			<li><a href="$basename#house-detail">详细信息</a></li>
			<li><a href="$imageTypeUrl&typeid=1">户型图</a></li>
			<li><a href="$imageTypeUrl&typeid=2">样板间</a></li>
			<li><a href="$imageTypeUrl&typeid=3">实景图</a></li>
			<li><a href="$imageTypeUrl&typeid=4">规划图</a></li>
			<li><a href="{$houseBaseUrl}q=video&hid=$hid">视频</a></li>
			<li><a href="$basename#e-map">地图</a></li>
			<li><a href="{$houseBaseUrl}q=pricedetail&hid=$hid">价格明细</a></li>
			<li><a href="$basename#house-detail" onclick="tab_change(jQuery('#hosue-round'),jQuery('#house-detail').find('.tab-panel'));">周边配套</a></li>
			<li><a href="{$houseBaseUrl}q=evaluations&hid=$hid">楼盘点评</a></li>
		</ul>
		<b class="r"></b>
	</div>
</div>
<div class="cc mb">
	<div class="w-325 fl">
		<div id="pwSlidePlayer" class="pwSlide pw-hbox">
<!--#
$cache_flash = $pageCache->getData('flash');
$temp = 0;
foreach ($cache_flash as $key=> $value) {
$class = $temp ? 'tab-panel hidden':'tab-panel';
$temp++;
#-->
			<div class="$class"><a href="$value[url]" target="_blank"><img width="303" height="270" src="$value[image]" /></a></div>
<!--# } #-->
			<div class="SwitchNav">
				<!--<span class="prev"><a href="#">向左</a></span>-->
				<ul class="tab-holder">
<!--#
$temp = 0;
foreach ($cache_flash as $key=> $value) {
$class = $temp ? '':'class="current"';
$temp++;
#-->
					<li $class><a href="$value[url]" target="_blank">$value[title]</a></li>
<!--# } #-->
				</ul>
				<!--<span class="next"><a href="#">向右</a></span>-->
			</div>
		</div>
	</div>
	<div class="w-625 fr">
		<div id="house-infos" class="pw-hbox">
			<div class="hd">
				<h3>{$houseinfo['name']}<em>楼盘信息</em></h3>
			</div>
			<div class="bd">
				<ul class="infos-list cc">
					<li class="full-line">
						<em>位&nbsp;&nbsp;&nbsp;&nbsp;置：</em>
						<span>
<!--#
if ($houseinfo['area']) {
#-->
							<a href="{$houseBaseUrl}q=list&area={$houseinfo['area']}">[{$areaField[$houseinfo['area']]}]</a>
<!--#
}
$buildingareaa = $houseinfo['buildingarea'] ? $houseinfo['buildingarea'] . '平米' : '';
$plotratio = ($houseinfo['plotratio'] && $houseinfo['plotratio'] != '0.00' ) ? $houseinfo['plotratio'] : '';
$buildingarea = $houseinfo['buildingarea'] ? $houseinfo['buildingarea'] : '';
$plateNewField = $housefieldsService->getPlateByAreaId($houseinfo['area']);//所在商圈
if ($houseinfo['plate'] && $plateNewField[$houseinfo['plate']]) {
#-->

							<a href="{$houseBaseUrl}q=list&plate={$houseinfo['plate']}">[{$plateNewField[$houseinfo['plate']]}]</a>
<!--#
}
#-->							
							{$houseinfo['address']}
						</span>
					</li>
					<li class="lang"><em>物业类型：</em><span>{$houseinfo['property_s']}</span></li>
					<li><em>交付标准：</em><span>{$houseinfo['paystatus_s']}</span></li>
					<li class="lang"><em>建筑面积：</em><span>{$buildingareaa}</span></li>
					<li><em>容 积 率：</em><span>{$plotratio}</span></li>
					<li class="lang"><em>售楼热线：</em><span><strong>{$houseinfo['saletele']}</strong></span></li>
					<li>
						<em>开 发 商：</em>
						<span>
<!--#
if ($developer) {
#-->
							<a href="{$houseBaseUrl}q=developer&id={$developer['id']}">{$developer['name']}</a>
<!--#
}
#-->
						</span>
					</li>
					<li class="lang"><em>售楼地址：</em><span>{$houseinfo['saleaddress']}</span></li>
					<li class="options">
						<span class="group-buy"><a href="{$houseBaseUrl}q=info&hid=$hid#P1">楼盘团购</a></span>
                        <span class="r-recommend" title="发送到新鲜事" onclick="sendmsg('operate.php?action=toweibo&ajax=1&type=house&id=$hid','','td_read_tpc');" ><a href="javascript:;">新鲜事</a></span>
					</li>
				</ul>
				<div class="other-infos">
					<div class="hd">
						<h4>价格明细</h4>
						<a href="{$houseBaseUrl}q=calculate" class="counter">房贷计算器</a>
						<a href="{$houseBaseUrl}q=pricedetail&hid=$hid" class="more">更多>> </a>
					</div>
					<div class="bd">
						<ul class="pw-hlist cc">
<!--#
$cache_newPrice = $pageCache->getData('newPrice');
foreach ($cache_newPrice as $key=> $value) { 
$value[currentprice] = $value[currentprice] ? ($value[currentprice] . '元/平米') : ' 待定 ';
#-->
							<li><span class="house-name">$value[title]</span> <span class="price">$value[currentprice]</span></li>
<!--# } #-->
						</ul>
					</div>
				</div>
				<div class="other-infos">
					<div class="hd">
						<h4>最新动态</h4>
						<a href="{$houseBaseUrl}q=feed&hid=$hid" class="more">更多>> </a>
					</div>
					<div class="bd">
<!--#
$cache_newFeed = $pageCache->getData('newFeed');
foreach ($cache_newFeed as $key=> $value) {
#-->
						<p>{$value[descrip]}</p>
<!--# } #-->
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="cc mb">
	<div class="w-325 fl">
		<div class="pw-hbox mb">
			<div class="hd">
				<h3>楼盘相关资讯</h3>
			</div>
			<div class="bd">
				<ul class="pw-hlist news-list cc">
<!--#
$cache_newThreadByTag = $pageCache->getData('newThreadByTag');
foreach ($cache_newThreadByTag as $key=> $value) {
#-->
					<li><a href="{$value[url]}"><span class="city"></span><span class="title">{$value[title]}</span><span class="date">{$value[postdate]}</span></a></li>
<!--# } #-->
				</ul>
			</div>
		</div>
		<div class="pw-hbox">
			<div class="hd">
				<h3>网友最新点评</h3>
<!--#
if ($houseinfo['cyid']) {
#-->
		<a href="apps.php?q=group&cyid={$houseinfo['cyid']}" class="more">进入业主小区>></a>
<!--#
}
#-->
			</div>
			<div class="bd">
				<ul class="pw-hlist news-list cc">
<!--#
$cache_newThread = $pageCache->getData('newThread');
foreach ($cache_newThread as $key=> $value) { 
#-->
					<li><a href="{$value[url]}"><span class="city"></span><span class="title">{$value[title]}</span><span class="date">{$value[postdate]}</span></a></li>
<!--# } 
$greenratiov = $houseinfo['greenratio'] ? $houseinfo['greenratio'] . '%' : '';
$floorspacev = $houseinfo['floorspace'] ? $houseinfo['floorspace'] . '平米' : '';
$carportfeev = $houseinfo['carportfee'] ? $houseinfo['carportfee'] . '元/年' : '';
$cleaningfev = $houseinfo['cleaningfee'] ? $houseinfo['cleaningfee'] . '元/平米·月' : '';
$deliverdate = $houseinfo['deliverdate'] == 0 ? '待定' : $houseinfo['deliverdate'];
$opendate = $houseinfo['opendate'] == 0 ? '待定' : $houseinfo['opendate'];
#-->
				</ul>
			</div>
		</div>
	</div>
	<div class="w-625 fr">
		<div id="house-detail" class="pw-hbox mb">
			<div class="hd">
				<ul class="tab-holder options">
					<li class="current"><h3>{$houseinfo['name']}</h3><a href="javascript:">详细信息</a></li>
					<li><a href="javascript:">项目介绍</a></li>
					<li id="hosue-round"><a href="javascript:">周边配套</a></li>
					<li><a href="javascript:">开发商介绍</a></li>
				</ul>
			</div>
			<div class="bd">
				<div class="tab-panel">
					<ul class="infos-list">
						<li class="lang"><em>楼盘类型：</em><span>{$housetypeField[$houseinfo['housetype']]}</span></li>
						<li><em>建筑类型：</em><span>{$houseinfo['buildtype_s']}</span></li>
						<li class="lang"><em>占地面积：</em><span>{$floorspacev}</span></li>
						<li><em>绿 化 率：</em><span>{$greenratiov}</span></li>
						<li class="lang"><em>开盘日期：</em><span>{$opendate}</span></li>
						<li><em>交付日期：</em><span>{$deliverdate}</span></li>
						<li class="lang"><em>车 位 数：</em><span>{$houseinfo['carport']}</span></li>
						<li><em>车 位 费：</em><span>{$carportfeev}</span></li>
						<!--li><em>付款方式：</em><span></span></li-->
						<li class="lang"><em>物业公司：</em><span>{$houseinfo['propertycompany']}</span></li>
						<li><em>物 业 费：</em><span>{$cleaningfev}</span></li>
						<li class="lang"><em>许可证号：</em><span>{$houseinfo['sellinglicense']}</span></li>
						<li class="full-line"><em>交通状况：</em><span>{$houseinfo['traffic']}</span></li>
					</ul>
				</div>
				<div class="tab-panel of-y hidden">
					<p>{$houseinfo['introduction']}</p>
				</div>
				<div class="tab-panel of-y hidden">
					<p>{$houseinfo['peripheral']}</p>
				</div>
				<div class="tab-panel of-y hidden">
					<p>{$developer['introduction']}</p>
				</div>
			</div>
		</div>
		<div id="house-photos" class="pw-hbox">
			<div class="hd">
				
				<ul class="tab-holder options">
					<li class="current"><h3>{$houseinfo['name']}</h3><a href="{$houseBaseUrl}q=album&hid=$hid">相册</a></li>
<!--#foreach ($topTypes as $key=> $value) { 
#-->
						<li><a href="{$houseBaseUrl}q=album&hid=$hid&typeid=$key">$value[name]</a></li>
<!--# } #-->
				</ul>
			</div>
			<div class="bd">
				<div class="tab-panel">
					<ul class="pw-hlist pho-list">
<!--#
$cache_imageType = $pageCache->getData('imageType');
foreach ($cache_imageType as $key=> $value) { 
#-->
						<li><a href="$value[url]"><img src="{$value[mini]}" /><span>{$value[title]}</span></a></li>
<!--# } #-->
					</ul>
				</div>
<!--# foreach ($topTypes as $key=> $value) { 
#-->
				<div class="tab-panel hidden">
					<ul class="pw-hlist pho-list">
<!--#
${'cache_imageType_'.$key} = $pageCache->getData('imageType_'.$key);
foreach (${'cache_imageType_'.$key} as $k=> $val) { 
#-->
						<li><a href="$val[url]"><img src="{$val[mini]}" /><span>{$val[title]}</span></a></li>
<!--# } #-->
					</ul>
				</div>
<!--# } #-->

			</div>
		</div>
	</div>
</div>
<!-- 广告位 start -->		
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.House.Info.Center','','','');
if($htmlAdvert){
print <<<EOT
-->
				<div class="mb">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<!-- 广告位 end -->
<div class="cc pw-hbox mb">
	<div id="e-map" class="w-715 fl">
		<div class="hd">
			<h3>{$houseinfo['name']}<em>楼盘地图</em></h3>
		</div>
		<div class="bd">
			<iframe height="355px" scrolling="no" frameborder="no" width="100%" style="border: 0pt none ; display: '';" src="$mapurl" frameborder="0" ></iframe>
		</div>
	</div>
	<div id="around-house" class="w-235 fr">
		<div class="hd">
			<h3>周边楼盘</h3>
		</div>
		<div class="bd">
			<ul class="pw-hlist house-list">
<!--#
$cache_roundHouse = $pageCache->getData('roundHouse');
foreach ($cache_roundHouse as $key=> $value) { 
$price = $value[aveprice] ? $value[aveprice] : '待定';
#-->
					<li><a href="$value[url]"><span class="house-name">{$value[name]}</span> <span>{$price}</span></a></li>
<!--# } #-->
			</ul>
		</div>
	</div>
</div>
<!-- 评论 评分  -->
<div class="cc mb">
	<div class="w-715 fl">
		<div id="koubei" class="pw-hbox mb">
			<div class="hd">
				<h3>{$houseinfo['name']}<em>楼盘口碑榜</em></h3>
			</div>
			<div class="bd">
<dl class="cc" id="overall">
	<dt>楼盘<br />
	点评：</dt>
	<dd><b class="lt"></b><b class="lb"></b><b class="rt"></b><b
		class="rb"></b>
	<div class="overall-wrap">
	<div class="overall-con">$scoreinfo[total]</div>
	</div>
	</dd>
</dl>
<div class="cc" id="house-score">
<div class="score-box">
<h4>网友综合楼盘评分（{$count}人参加）：</h4>
{$scorehtml}</div>
<div class="score-box2 star-box">
<h4>个人楼盘评分：</h4>
<div class="star-list">{$starhtml}</div>
<!--# if($totalScore != 0){ #-->
<p class="my-score">该楼盘总分<br />
<strong>{$totalScore}分</strong><br />
<em>/{$fullScore}分</em></p>
<!--# }else{ #-->
<p class="my-score">该楼盘暂无人参与评分</p>
<!--# } #-->
</div>
	<a name="P2"></a>
	<form action="$scoreurl&" method="post" name="F" onsubmit="return sendPostEvaluations('$scoreurl&',document.F)">
		<input type="hidden" name="jumpurl" value="y">
		<input type="hidden" name="hid" value="$hid">
		<input type="hidden" name="step" value="evaledit"/>
		<p class="review"><em>点评：</em> <textarea name="content"></textarea> </p>
		<p class="review-btn"><button type="submit">提 交</button></p>
	</form>
</div>
<script type="text/javascript">
function sendPostEvaluations(url,form){
	if(form.content.value == ''){
		showDialog('error','点评内容不能为空');
		return false;
	}
	ajax.send(url,form,function(){
		ajax.guide();
		form.content.value = '';
	});
	return false;
}
</script>
<!--
EOT;
$cache_evaluations = $pageCache->getData('evaluations');
print <<<EOT 
-->
<div id="new-comments">
	<div class="hd">
		<h4>最新点评： <em>共{$houseinfo[postnum]}条点评</em></h4>
		<a href="$scoreurl" class="more">更多>></a>
	</div>
	<div class="bd">
		<ul class="comments-list">
<!--
EOT;
foreach($cache_evaluations as $key => $value){
if ($value['ifcheck']) {
print <<<EOT
-->
			<li class="item">
				<h4><a href="u.php?username=$value[username]">$value[username]</a>：</h4>
				<div class="avatar"><a href="mode.php?m=o&q=user&username=$value[username]"><img src="$value[icon]" width="50" height="50" /></a></div>
				<p>$value[content]
<!--
EOT;
if($value['sub']){
print <<<EOT
-->
				<a href="$scoreurl#$value[id]" class="more">更多详情&gt;&gt;</a></p>
<!--
EOT;
}print <<<EOT
-->
			</li>
<!--
EOT;
}
}print <<<EOT
-->
		</ul>
	</div>
</div>
</div>
</div>
		
<div id="group-buy" class="pw-hbox">
	<div class="hd">
		<h3>我要团购</h3>
		<h4>已有<em>{$houseinfo[groupbuynum]}</em>人参加</h4>
	</div>
	<div class="bd">
		<a name="P1"></a>
		<form method="post" action="$groupbuyurl">
			<input type="hidden" value="addgroupbuy" name="action"/>
			<input type="hidden" value="$houseinfo[hid]" name="hid"/>
			<input type="hidden" value="$houseinfo[name]" name="hname"/>
			<ul class="form-list cc">
				<li><span>姓&nbsp;&nbsp;名：</span>
					<input type="text" class="text" name="username" /></li>
				<li><span>性&nbsp;&nbsp;别：</span>
					<label><input type="radio" name="gender" value="2" checked="checked" /> 先生</label>
					<label><input type="radio" name="gender" value="1" /> 女士</label>
				<li><span>联系电话：</span>
					<input type="text" class="text" name="phone" /></li>
				<li><span>电子邮件：</span>
					<input type="text" class="text" name="email" /></li>
				<li><span>购房预算：</span>$budgetHtml</li>
				<li><span>户型面积：</span>$areaHtml</li>
				<li><span>QQ/MSN：</span><input type="text" class="text" name="msn" /></li>
				<li class="full-line"><span>留言（200字以内）：</span><br />
					<textarea name="remark"></textarea></li>
				<li class="review-btn"><button type="submit">提交</button></li>
			</ul>
		</form>
	</div>
</div>
		
	</div>
	<div class="w-235 fr">
		<div class="house-tools mb">
			<div class="hd">
				<h3>楼盘点评榜</h3>
				<!-- <a class="more" href="#">更多>></a> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list">
<!--#
$cache_scoreHouse = $pageCache->getData('scoreHouse');
foreach ($cache_scoreHouse as $key=> $value) { 
	$temp = $key + 1;
	$aveprice = $value[aveprice] ? $value[aveprice] : '待定';
#-->
					<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$aveprice}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
		<div class="house-tools mb">
			<div class="hd">
				<h3>推荐楼盘</h3>
				<!-- <a class="more" href="#">更多>></a> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list">
<!--#
$cache_recommendHouse = $pageCache->getData('recommendHouse');
foreach ($cache_recommendHouse as $key=> $value) { 
	$temp = $key + 1;
	$aveprice = $value[aveprice] ? $value[aveprice] : '待定';
#-->
					<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$aveprice}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
		<div class="house-tools mb">
			<div class="hd">
				<h3>最新楼盘</h3>
				<!-- <a class="more" href="#">更多>></a> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list">
<!--#
$cache_newHouse = $pageCache->getData('newHouse');
foreach ($cache_newHouse as $key=> $value) { 
	$temp = $key + 1;
	$aveprice = $value[aveprice] ? $value[aveprice] : '待定';
#-->
					<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$aveprice}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
		<div class="house-tools">
			<div class="hd">
				<h3>团购排行</h3>
				<!-- <a class="more" href="#">更多>></a> -->
			</div>
			<div class="bd">
				<ol class="pw-hlist house-list rank">
<!--#
$cache_groupBuy = $pageCache->getData('groupBuy');
foreach ($cache_groupBuy as $key=> $value) { 
$aveprice = $value[aveprice] ? $value[aveprice] : '待定';
#-->
					<li><a href="$value[url]"><span class="house-name">{$value[name]}</span> <span>{$value[area]}</span> <span>{$aveprice}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
				</ol>
			</div>
		</div>
<!-- 广告位 start -->		
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.House.Info.Right','','','');
if($htmlAdvert){
print <<<EOT
-->
				<div class="mb">$htmlAdvert</div>
<!--
EOT;
}print <<<EOT
-->
<!-- 广告位 end -->
	</div>
</div>
<script type="text/javascript">
var starInfoObj = {};
var scoreCount = '$scoreCount';
var scorekeysArray = "$scoreKeys".split(',');
function setOnclickEvent(){
	try{
		for(var i = 0 ; i < scorekeysArray.length ; i++){
			for(var j = 1 ; j <= 5 ; j++){
				var obj = getObj('star_'+ j +'_'+ scorekeysArray[i]);
				if(obj != null){
					obj.onclick = clickStar;
				}else{
					var obj1 = getObj(scorekeysArray[i]+'_span');
					if(obj1 != null){
						obj1.onclick = clickStar2;
					}
				}
			}
		}
	}catch(e){
	}
}
function clickStar(){
	try{
		if('$groupid' == 'guest'){
			showDialog("warning","您还未登录，不能进行评分！",2);
			return false;
		}
		var startvalue = this.id.substr(5,1);
		var starttype = this.id.substr(7,1);
		var className = this.className;
		/*重置其他评分*/
		for(var i=1; i<=5; i++) {
			var obj = getObj('star_'+ i +'_'+ starttype);
			var cn = obj.className;
			if (cn.indexOf('-h') != -1) {
				obj.className = cn.replace('-h','');
			}
		}
		if (className.indexOf('-h') == -1) {
			this.className = this.className + '-h' ;
		}
		starInfoObj[starttype] = startvalue;
		var flag = true;
		for(var i=0; i<scorekeysArray.length; i++) {
			if (!(scorekeysArray[i] in starInfoObj)) {
				flag = false;
				break;
			}
		}
		if(flag){
			var starinfo = '';
			for(key in starInfoObj) {
				if(starinfo == ''){
					starinfo = key + ":" + starInfoObj[key];
				}else{
					starinfo += ","+ key + ":" + starInfoObj[key];
				}
			}
			ajax.send('$scoreurl&step=score&hid=$hid&starinfo='+ starinfo,'',function(){
					showDialog("success","评分成功！",2);
					setTimeout("window.location.reload();",1000);
				}
			);
		}
	}catch(e){
	}
}
setOnclickEvent();
function clickStar2(){
	showDialog("warning","24小时内不能重复评分",5);
	return false;
}
</script>
<!--
EOT;
?>-->